import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询调警令列表/bussiness/OrderPolice/list
export function OrderPoliceList(data,query) {
  return request({
    url: '/bussiness/OrderPolice/list',
    method: 'post',
    params: query,
    data: data,
    isEncrypt: false
  })
}

// 调警令人员返回列表/bussiness/OrderPolice/toUnitList
export function BackPoliceList(data,query) {
  return request({
    url: '/bussiness/OrderPolice/toUnitList',
    method: 'post',
    params: query,
    data: data,
    isEncrypt: false
  })
}
// 归还人员/bussiness/OrderPolice/completeOrderPolice
export function BackPolice(data) {
  return request({
    url: '/bussiness/OrderPolice/completeOrderPolice',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 查询调警令详情/bussiness/OrderPolice/info
export function OrderPoliceInfo(id) {
  return request({
    url: '/bussiness/OrderPolice/info?id=' + id,
    method: 'get',
  })
}

// 新增调警令/bussiness/OrderPolice/add
export function OrderPoliceAdd(data) {
  return request({
    url: '/bussiness/OrderPolice/add',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 修改调警令
export function editOrderPolice(data) {
  return request({
    url: '/bussiness/OrderPolice/edit',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 删除调警令
export function removeOrderPolice(id) {
  return request({
    url: '/bussiness/OrderPolice/remove?id=' + id,
    method: 'post',
    isEncrypt: false
  })
}

// 派警单位法警部门领导审批列表  /bussiness/OrderPolice/depList
export function OrderPoliceDepList(data,query) {
    return request({
      url: '/bussiness/OrderPolice/depList',
      method: 'post',
      params: query,
      data: data,
      isEncrypt: false
    })
  }

//   派警单位法警部门领导-确定并调警 /bussiness/OrderPolice/depConfirm
export function OrderPoliceDepConfirm(data,query) {
    return request({
      url: '/bussiness/OrderPolice/depConfirm',
      method: 'post',
      params: query,
      data: data,
      isEncrypt: false
    })
  }

//   法警负责人审批-提交分管领导/bussiness/OrderPolice/forLeaderConfirm
  export function OrderPoliceForLeaderConfirm(data,query) {
    return request({
      url: '/bussiness/OrderPolice/forLeaderConfirm',
      method: 'post',
      params: query,
      data: data,
      isEncrypt: false
    })
  }

// 派警单位法警分管领导审批列表  /bussiness/OrderPolice/leaderList
export function OrderPoliceLeaderList(data,query) {
    return request({
      url: '/bussiness/OrderPolice/leaderList',
      method: 'post',
      params: query,
      data: data,
      isEncrypt: false
    })
  }

//   分管领导审批-确定审批/bussiness/OrderPolice/leaderConfirm
export function OrderPoliceLeaderConfirm(data,query) {
    return request({
      url: '/bussiness/OrderPolice/leaderConfirm',
      method: 'post',
      params: query,
      data: data,
      isEncrypt: false
    })
  }



